package lianxi;

public class test {
    public static void main(String[] args) {
        Person p = new Person("老王",30);
        Dog d = new Dog(6,"黑");
        Cat c = new Cat(5,"白");
        p.keepPet(d,"骨头");
        p.keepPet(c,"鱼");
    }
}
